//
//  YHContributionerListAPI.m
//  Catches
//
//  Created by jiangqiong on 2018/5/17.
//  Copyright © 2018年 solot. All rights reserved.
//

#import "YHContributionerListAPI.h"
#import "YHContributionerModel.h"

@implementation YHContributionerListAPI

- (NSString *)requestURL
{
    return @"/angler/v2/user?method=userContributiveRankingList";
}

//若当前用户贡献分为0，则无myRank结构返回

- (NSDictionary *)responseResultMapping
{
    
    return @{@"/data/datas":@"YHContributionerModel", @"/data/myRank":@"YHContributionerModel"};
    
}

- (HQRequestMethod)requestMethod {
    return HQRequestMethodGET;
}


+(NSMutableArray *)getDataSource{
    NSMutableArray * dataSource = [NSMutableArray array];
    for(int i = 0 ; i < 10 ; i ++){
        YHContributionerModel * model = [YHContributionerModel new];
        model.contributiveScore = (i + 1)* 100;
        [dataSource addObject:model];
    }
    return dataSource;
}

@end
